"""
物品 | 数据层
"""

from models.po import FamilyItemPO
from service.base import ServiceBase


class FamilyItemService(ServiceBase[FamilyItemPO]):
    """ 家庭 | 物品 | 数据层 """

    po = FamilyItemPO
    collection_name = "family_item"
    single_field_index = [
        "id",
        "category",
        "colors",
        "expire_date",
        "name",
        "purchase_date",
        "position_id",
        "price",
        "status",
        "tags",
        "valid_days",
    ]
